Some cpupool actions didn't check the cpupool_id exactly. For some
actions this doesn't make any sense, so refuse those actions if the
specified cpupool doesn't exist.
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
ret = -EBUSY;
if ( !cpu_isset(cpu, cpupool_free_cpus) )
goto addcpu_out;
- c = cpupool_find_by_id(op->cpupool_id, 0);
+ c = cpupool_find_by_id(op->cpupool_id, 1);
ret = -ENOENT;
if ( c == NULL )
goto addcpu_out;
{
unsigned cpu;
- c = __cpupool_get_by_id(op->cpupool_id, 0);
+ c = __cpupool_get_by_id(op->cpupool_id, 1);
ret = -ENOENT;
if ( c == NULL )
break;